package com.yesido.moshi.seven.Segregation_geli;

/**
 * @author yesido
 * @description
 * @date 2023-06-11 23:48
 * @Version 8.3
 */
public class B implements Interface1, Interface2 {
    //需要加上public：因为不能缩小其访问范围
    @Override
    public void operation1() {
        System.out.println("B 实现了 operation1");
    }

    @Override
    public void operation2() {
        System.out.println("B 实现了 operation2");
    }

    @Override
    public void operation3() {
        System.out.println("B 实现了 operation3");
    }
}
